package tech.dnf.tripartite.nnfpjss.plugin;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.lang.reflect.Method;

/**
 * Create by dengfan at 2019/8/5 0005 14:56
 */
@Data
@AllArgsConstructor
public class Invocation {
    private Object target;
    private Method method;
    private Object[] args;

    public Object proceed(){
        try {
            return method.invoke(target, args);
        } catch (Exception e) {
            e.printStackTrace();
            throw new RuntimeException();
        }
    }

}
